<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商场头部</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/layout.css">
    <style>
        #head {
            background: url(images/h_bg.jpg) no-repeat;
            height: 135px;
            width: 980px;
            position: relative;
            background-position: -24px 0;
        }
        #logo {
            width: 300px; 
            height: 95px;
            
        }
        .head-icon {
            width: 450px;
            height: 40px;
            position: absolute;
            top: 0;
            right: 0;
        }
        #hello {
            width: 390px;
            height: 40px;
            position: absolute;
            letter-spacing: 3px;
            top: 75px;
            right: 30px;
        }
        #head-nav {
            height: 40px;
        }
        #head-nav li {
            float: left;
            font: 16px/32px 宋体;
            width: 75px;
            padding-left: 4px;
            padding-right: 4px;
            text-align: center;
        }
        .head-icon li {
            float: left;
            font: 12px/25px 宋体;
            padding: 5px;
            position: relative;
            left: 13px;
            
        }
        .head-icon-a {
            float: left;
            height: 15px;
        }
        .head-icon span {
            background: url(images/icon.gif) no-repeat;
            width: 25px;
            height: 25px;
            display: inline-block;
            position: relative;
            top: 5px;
        }
        #icon-Help {
            background-position: -40px 0;
        }
        #icon-Favour {
            background-position: -90px 0;
        }
        #icon-home {
            background-position: -132px 0;
        }
        .head-icon ul {
            width: 100%;
            position: absolute;
            top: -5px;
            right: 14px;
        }
        .imgBtn {
            background-image: url(images/icon.gif);
            width: 42px;
            height: 20px;
            padding-left: 10px;
            
        }
        
    </style>
</head>
<body>
    <div id="head">
        <div id="logo"></div>
        <div class="head-icon">
            <ul>
                <li><span id="icon-Cart"></span><a href="cart.html" target="_parent" id="icon-Cart">购物车</a></li>
                <li><span id="icon-Help"></span><a href="help.html" target="_parent" id="icon-Cart">帮助手册</a></li>
                <li><span id="icon-Favour"></span> 加入收藏</li>
                <li><span id="icon-home"></span> 设为首页</li>
                <li style="top: 12px;">
                    <div class="imgBtn" style="background-position: 0 -30px;">
                        <a class="head-icon-a" id="btnlogin" href="login.html" target="_parent">登录</a>
                    </div>
                </li>
                <li style="left: 60px;bottom: 18px;">
                    <div class="imgBtn" style="background-position: 0 -30px;">
                        <a class="head-icon-a" id="btnReg" href="register.html" target="_parent">注册</a>
                    </div>
                </li>
            </ul>
        </div>
        <div id="head-nav">
            <ul>
                <li>首&nbsp页</li>
                <li>家用电器</li>
                <li>手机数码</li>
                <li>日用百货</li>
                <li>书&nbsp籍</li>
                <li>帮助中心</li>
                <li>免费开店</li>
                <li>全球咨询</li>
            </ul>
        </div>
        <div id="hello">
            <div style="color: #888D84;font-size: 20px;">
                你好，欢迎访问贵美商城！2020-8-2
            </div>
            
        </div>
    </div>
</body>
</html>